// import request from "@/utils/request";

// const API = {
//   HomeData_URL: '/curriculum/list',
//   DetailsData_URL: '/curriculum/',
//   Question_URL: '/curr_question/list/'
// };

// export const resHomeData = () => request.get(API.HomeData_URL);
// export const resDetailsData = (curNo) => request.get(API.DetailsData_URL + curNo);
// export const resQuestionData = (curNo) => request.get(API.Question_URL + `?currNo=${curNo}`);

import request from "@/utils/request";
import { numberKeyboardProps } from "vant";

const API = {
  HomeData_URL: '/curriculum/list',
  DetailsData_URL: '/curriculum/'
  // DetailsData_URL: corId => `/curriculum/${corId}`
};

export const resHomeData = () => request.get(API.HomeData_URL);
export const resDetailsData = (corId) => {
  return request.get(API.DetailsData_URL + (corId));
};